home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / MIDI_MAN / MIDI_MAN.R < prev   
Text File  |  1991-09-05  |  3KB  |  68 lines

  1. /*
  2.  *--- MIDI Manager Estr.r -----------------------------------------
  3.  * These resources create 'Estr' strings which can be used by 
  4.  * the CError methods: SevereMacError and CheckOSError.
  5.  *-----------------------------------------------------------------
  6.  */
  7. #define midiNoMIDIManagerErr    -249    // ADDED BY PAUL FERGUSON (This isn't a real Mac result code)
  8. #define midiNoClientErr            -250    // no client with that ID found
  9. #define midiNoPortErr            -251    // no port with that ID found
  10. #define midiTooManyPortsErr        -252    // too many ports already installed in the system
  11. #define midiTooManyConsErr        -253    // too many connections made
  12. #define midiVConnectErr            -254    // pending virtual connection created
  13. #define midiVConnectMade        -255    // pending virtual connection resolved
  14. #define midiVConnectRmvd        -256    // pending virtual connection removed
  15. #define midiNoConErr            -257    // no connection exists between specified ports
  16. #define midiWriteErr            -258    // MIDIWritePacket couldn't write to all connected ports
  17. #define midiNameLenErr            -259    // name supplied is longer than 31 characters
  18. #define midiDupIDErr            -260    // duplicate client ID
  19. #define midiInvalidCmdErr        -261    // command not supported for port type
  20.  
  21.  
  22. // Define the type 'Estr' just like a 'STR ' resource.
  23. type 'Estr' {
  24.         pstring;
  25. };
  26.  
  27. resource 'Estr' (midiNoMIDIManagerErr) {
  28.     "No MIDI Manager software found."
  29. };
  30. resource 'Estr' (midiNoClientErr) {
  31.     "MIDI Manager Error. No client with that ID found."
  32. };
  33. resource 'Estr' (midiNoPortErr) {
  34.     "MIDI Manager Error. No port with that ID found."
  35. };
  36. resource 'Estr' (midiTooManyPortsErr) {
  37.     "MIDI Manager Error. Too many ports already installed in the system."
  38. };
  39. resource 'Estr' (midiTooManyConsErr) {
  40.     "MIDI Manager Error. Too many connections made."
  41. };
  42. resource 'Estr' (midiVConnectErr) {
  43.     "MIDI Manager Error. Pending virtual connection created."
  44. };
  45. resource 'Estr' (midiVConnectMade) {
  46.     "Pending virtual connection resolved."        // NOTE: This is normally not a MM error
  47. };
  48. resource 'Estr' (midiVConnectRmvd) {
  49.     "MIDI Manager Error. Pending virtual connection removed."
  50. };
  51. resource 'Estr' (midiNoConErr) {
  52.     "MIDI Manager Error. No connection exists between specified ports."
  53. };
  54. resource 'Estr' (midiWriteErr) {
  55.     "MIDI Manager Error. MIDIWritePacket couldn╒t write to all connected ports"
  56. };
  57. resource 'Estr' (midiNameLenErr) {
  58.     "MIDI Manager Error. Name supplied is longer than 31 characters."
  59. };
  60. resource 'Estr' (midiDupIDErr) {
  61.     "MIDI Manager Error. Duplicate client ID."
  62. };
  63. resource 'Estr' (midiInvalidCmdErr) {
  64.     "MIDI Manager Error. Command not supported for port type."
  65. };
  66.  
  67.  
  68.